package com.lipaluma.annotations.merge;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import com.lipaluma.field.merge.NoMergeAlgorithm;
import com.lipaluma.field.merge.TargetMergedAlgorithm;

/**
 * Annotation allows the user to define the algorithm of merge.<br/>
 * @author Mario
 */
@Documented
@Inherited
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface MergeTarget {
	/**
	 * the merge strategy
	 */
	Class<? extends TargetMergedAlgorithm> value() default NoMergeAlgorithm.class;

	/**
	 * In case of the action of the merge need parameters.
	 */
	String[] params() default {};
}
